﻿
CREATE PROCEDURE [dbo].[thuan_qtxoanguoidung]    
@ID as int    
AS    
declare @dem as int     
select @dem=COUNT(*) from DanhMuc_NguoiDung where UserID=@ID     
if(@dem >0)    
begin    
delete from DanhMuc_NguoiDung where UserID=@ID    
select ErrCode=1    
end    
else    
begin    
select ErrCode=0    
end  